<%@ page import="java.util.Random" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/8/18
  Time: 18:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    double pi = Math.PI;
    System.out.println(pi);
    Random random = new Random();
    System.out.println(random.nextInt()*10+1);
%>
<%!
    int a= 10;
    public void show(){
        System.out.println("jsp中可以写方法");
    }

%>
<%
    out.print(a);show();
%>
<%=a%>
</body>
</html>
